package com.zpark.pojo;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.format.annotation.NumberFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @PackageName: com.zpark.pojo
 * @ClassName: Supermarket
 * @Description:
 * @author: RZS
 * @date: 2023/4/11  15:41
 */
@Data
public class Supermarket {
    private String name;
    /**
     * 日期格式化
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date date;
    /**
     * 数值格式化
     */
    @NumberFormat(style = NumberFormat.Style.CURRENCY)
    private BigDecimal money;
}
